map

inline fun <T, R> KOptional<T>.map(action: (T) -> R): KOptional<R>(source)

Transforms the value with the provided action if it's present.